package com.kavenka.zhufengfm.app.provider;

import android.net.Uri;
import android.provider.BaseColumns;

/**
 * Created by kavenka on 2015/9/27 0027.
 */
public class DatabaseContract {
    //content provider的authority
    public static final String BASE_AUTHORITY="com.kavenka.zhufengfm.dataprovider";
    //发现部分分类表表名
    public static final String TABLE_DISCOVER_CATEGORIES="d_categories";
    //字段部分
    public static class DiscoverCategories implements BaseColumns{
        public static final String NAME = "name";
        public static final String TITLE = "title";
        public static final String IS_CHECKED = "is_checked";
        public static final String ORDER_NUM = "order_num";
        public static final String COVER_PATH = "cover_path";
        public static final String SELECTED_SWITCH = "selected_switch";
        public static final String IS_FINISHED = "is_finished";
        public static final String CONTENT_TYPE = "content_type";
        // Uri 部分 content://com.qianfeng.zhufengfm.dataprovider/d_categories
        public static final Uri CONTENT_URI =
                Uri.parse("content://" + BASE_AUTHORITY)
                        .buildUpon()
                        .appendPath(TABLE_DISCOVER_CATEGORIES)
                        .build();
    }
}
